package org.brisling.listenner.workflow;

import org.activiti.engine.EngineServices;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.activiti.engine.delegate.event.ActivitiActivityEvent;
import org.activiti.engine.delegate.event.ActivitiEventType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * User: henryyan
 */
public class GlobalTaskListener  implements TaskListener,ActivitiActivityEvent {

    /**
	 * 
	 */
	private static final long serialVersionUID = 3682794992721023797L;
	protected Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void notify(DelegateTask delegateTask) {
        logger.debug("触发了全局监听器, pid={}, tid={}, event={}", new Object[]{
                delegateTask.getProcessInstanceId(), delegateTask.getId(), delegateTask.getEventName()
        });
    }

	@Override
	public ActivitiEventType getType() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getExecutionId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getProcessInstanceId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getProcessDefinitionId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public EngineServices getEngineServices() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getActivityId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getActivityName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getActivityType() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getBehaviorClass() {
		// TODO Auto-generated method stub
		return null;
	}
}
